package link.xieyu;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author xieyu
 * @date 2021/7/21
 */
public class Application {
	public static void main(String[] args) {
		ApplicationContext context = new ClassPathXmlApplicationContext("spring.xml");
		System.err.println("你好");
		Object app = context.getBean("app");
		System.err.println(app);
//		ApplicationContext applicationContext = new ClassPathXmlApplicationContext("spring.xml");
//		applicationContext.getBean(Ab.class).hello();

	}
}
